import React, { useEffect, useState } from 'react';
import { manager_list } from '../utils/System settings/api'

// 自定义HOOKS
export function useManager(props) {
    let [managerList, setManagerList] = useState([])
    useEffect(() => {
        // 发请求
        manager_list().then((res) => {
            console.log(res.data);
            setManagerList(res.data)
        })

    }, [])


    return [managerList, setManagerList]

}